<template>
  <basic-dialog
    width="60%"
    title="SKU图片"
    closeOnClickModal
    :visible="visible"
    :showFooter="false"
    :handleClose="handleClose"
  >
    <div class="img-wrap">
      <img :src="imageUrl" />
    </div>
  </basic-dialog>
</template>
<script>
import BasicDialog from '@/components/BasicDialog';
export default {
  components: { BasicDialog },
  props: {
    visible: { // 弹框开关
      type: Boolean,
      default: false
    },
    imageUrl: {
      type: String,
      default: ''
    }
  },
  watch: {
    imageUrl (val) {
      console.log(val);
    }
  },
  methods: {
    handleClose () {
      this.$emit('update:visible', false)
    }
  }
}
</script>
<style lang="less" scoped>
.img-wrap {
  img {
    width: 100%;
    height: 100%;
  }
}
</style>
